package 同步不具有继承性;

public class MyThreadB extends Thread{
	private Sub sub;
	public MyThreadB(Sub sub) {
		super();
		this.sub=sub;
	}
	public void run() {
		sub.serviceMethod();
	}

}
